package com.reader.api.entity.comment;

import com.reader.core.entity.BaseRequest;
import com.reader.core.validator.group.AddGroup;
import com.reader.core.validator.group.UpdateGroup;

import javax.validation.constraints.NotBlank;

/**
 * 留言列表接口 请求对象
 */
public class CommentListRequest extends BaseRequest {

    /**
     * 内容ID, 跟评论关联的内容ID
     */
    @NotBlank(message="内容ID不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private  String docId;

    public String getDocId() {
        return docId;
    }

    public void setDocId(String docId) {
        this.docId = docId;
    }
}
